projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
489dfa9
)
notebook: don't use a null page
author
William Jon McCann
<william.jon.mccann@gmail.com>
Fri, 24 Jan 2014 23:40:57 +0000
(18:40 -0500)
committer
William Jon McCann
<william.jon.mccann@gmail.com>
Fri, 24 Jan 2014 23:41:22 +0000
(18:41 -0500)
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index b610b6cc824c1288c8aaee133e9595c6f6d895ba..21da499dc7998933eec46b2afd3002564ccf7240 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-2007,6
+2007,8
@@
notebook_tab_prepare_style_context (GtkNotebook *notebook,
state |= GTK_STATE_FLAG_ACTIVE;
if (page == notebook->priv->prelight_tab)
state |= GTK_STATE_FLAG_PRELIGHT;
+ if (page->reorderable)
+ gtk_style_context_add_class (context, "reorderable-page");
}
gtk_style_context_set_state (context, state);
@@
-2016,9
+2018,6
@@
notebook_tab_prepare_style_context (GtkNotebook *notebook,
gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, flags);
- if (page->reorderable)
- gtk_style_context_add_class (context, "reorderable-page");
-
switch (tab_pos)
{
case GTK_POS_TOP: